package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AkiRinko
 * @since 2024-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order")
@ApiModel(value="TbOrder对象", description="")
public class TbOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "第三方平台单号")
    private String thirdNo;

    @ApiModelProperty(value = "机器编号")
    private String innerCode;

    @ApiModelProperty(value = "skuId")
    private Long skuId;

    @ApiModelProperty(value = "商品名称")
    private String skuName;

    @ApiModelProperty(value = "商品类别Id")
    private Integer classId;

    @ApiModelProperty(value = "订单状态:0-创建;1-支付完成;2-出货成功;3-出货失败;4-失效")
    private Integer status;

    @ApiModelProperty(value = "支付金额")
    private Integer amount;

    @ApiModelProperty(value = "商品金额")
    private Integer price;

    @ApiModelProperty(value = "支付类型，1支付宝 2微信")
    private String payType;

    @ApiModelProperty(value = "支付状态，0-未支付;1-支付完成;2-退款中;3-退款完成")
    private Integer payStatus;

    @ApiModelProperty(value = "合作商账单金额")
    private Integer bill;

    @ApiModelProperty(value = "点位地址")
    private String addr;

    @ApiModelProperty(value = "所属区域Id")
    private Long regionId;

    private String regionName;

    @ApiModelProperty(value = "所属商圈Id")
    private Integer businessId;

    @ApiModelProperty(value = "商圈名称")
    private String businessName;

    @ApiModelProperty(value = "合作商Id")
    private Integer ownerId;

    private String openId;

    @ApiModelProperty(value = "点位Id")
    private Long nodeId;

    private String nodeName;

    @ApiModelProperty(value = "取消原因")
    private String cancelDesc;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
